import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:im_app/im/page/view/component/login/InitPatternLockView.dart';

import '../util/ImConstant.dart';

/// 设置滑屏密码
class InitPatternLockPage extends StatelessWidget {

  final String tenantCode;
  final String loginSuccessUrl;
  final String titleName;

  const InitPatternLockPage({
    required this.tenantCode,
    required this.loginSuccessUrl,
    required this.titleName, super.key
  });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text(titleName),),
        backgroundColor: ImConstant.IM_MAIN_BACKGROUND_COLOR,
        body: SafeArea(
          left: false, right: false,
          child: InitPatternLockView(tenantCode: tenantCode, loginSuccessUrl: loginSuccessUrl,),
        )
    );
  }

}